<?php
        $comments = @$pages->getResults();
        foreach($comments as $comment) //(null==$photoGroup->getSnapshot()?"/images/noimage.gif":$photoGroup->getSnapshot())
            {
                echo "<div class='pl_con'>
           <div class='pl_con_l'><a href='#'><img src='".$comment->getUsers()->getAvatar()."'  /></a></div>
           <div class='pl_con_r'>
             <div class='pl_username'><span>".$comment->getUsers()->getNickname()."</span> <span class='pl_date'>评论时间：".@utility::DateDiff(date("Y-m-d H:i:s"),$comment->getCreateTime())."</span></div>
             <div class='pl_contant'>".$comment->getBody()."</div>
           </div>
         </div>";
            }

		 /* $sql="select *,convert(varchar(10),R.create_time,120) as comen_time,cast(avatar as varchar(4000))avatar, cast(body as varchar(4000))body
		  from [Users] as C,Comment as R where C.user_id=R.user_id and R.content_type_i=1003 order by R.create_time desc";//韩流前线、明星
		$countc=0;
		  $out="";
		  $STH=$connection->execute($sql);
             $STH->setFetchMode(PDO::FETCH_ASSOC);
             while( $row=$STH->fetch()){
		  $countc++;
		 $out=$out."<div class='pl_con'>
           <div class='pl_con_l'><a href='#'><img src='".$row['avatar']."'  /></a></div>
           <div class='pl_con_r'>
             <div class='pl_username'><span>".$row['nickname']."</span> <span class='pl_date'>评论时间：".((integer)DateDiff(date("y-m-d H:i:s"),$row['comen_time'],"d"))."天前</span></div>
             <div class='pl_contant'>".$row['body']."</div>
           </div>
         </div>";
		}
		$fff="<div class='page_num'><b>1-4</b> of <b>".$countc."</b></div>".$out;
		echo $fff;*/
		?>